<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<shield:permssion type="button">
<table class="tab-list shield-table-odd">
    <tr>
        <th class="w50 taCenter">序号</th>
	    <th>执行类型</th>
	    <th>执行的主机ip</th>
	    <th>操作人</th>
	    <th>执行时间</th>
	    <th>备注</th>
        <th class="operate_icon">操作</th>
    </tr>
<c:forEach var="model" items="${pageBean.resultList }" varStatus="var">
    <tr>
        <td style="text-align: center;">${(pageBean.currentPage -1)*pageBean.pageSize+var.count }</td>
        
	   	<td ><shield:switchOput data="0=启动|9=关闭|1=开始|2=结束|3=进行中|4=运行异常|10=注册" value="${model.type}"></shield:switchOput></td>
	   	<td >${model.serverIp }</td>
	   	<td >${model.createName }</td>
	   	<td >${model.execTime }</td>
	   	<td >${model.remarks }</td>
	
        <td>
        	<!-- href改为data-url -->
            <a data-url="${ctxPathA }/system/timedtask/log/show" shieldParams="{'id':'${model.id }'}" class="shieldDialog shield-icon show" viewTitle="定时任务执行情况记录表详情" data-icon-title="查看定时任务执行情况记录表详情"
               viewWidth="800"></a>
            <a data-url="${ctxPathA }/system/timedtask/log/del" shieldParams="{'id':'${model.id }'}"  class="shieldAjax shield-icon del" viewTitle="确定要删除该条记录吗?"></a>
        </td>
    </tr>
</c:forEach>
<c:if test="${empty pageBean.resultList }">
    <!-- 无数据时展示，有数据时展示上面的列表, nodatatr_plugin自动处理列合并数-->
    <tr class="nodatatr_plugin">
        <td colspan="4" class="taCenter">暂无数据</td>
    </tr>
</c:if>
</table>
</shield:permssion>
<%@include file="/WEB-INF/view/a/include/pagination.jsp"%>